#pragma once
#include "Server.h"
#include "ServerPlayerManager.h"

class CNodeServer :	public CServer, public CServerPlayerManager
{
	friend class CManagerPlayer;
public:
	CNodeServer(void);
	~CNodeServer(void);

	virtual BOOL OnInitialUpdate();
    virtual void Tick();
	int GetOrigin() {return m_nOrigin;}
	void SetOrigin(int nOrigin) {m_nOrigin = nOrigin;} 

	void AddDstOrigin(int nOrigin) { m_listDstOrigin.AddTail(nOrigin);};
	CObjList<int>& GetDstOrigin() {return m_listDstOrigin;};

	BOOL IsDstOrigin(int nOrigin);

	int GetServerId() {return m_nServerId;};

protected:
	int m_nOrigin;
	int m_nServerId;
	CObjList<int> m_listDstOrigin;
};
